<%@page import="doantotnghiep.modelDTO.MedicamentDTO"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	   float tong=0;
 		%>
	<div align="center">
		<h1 style="color: blue;"> CHI TIẾT ĐẶT HÀNG </h1>
			<table class="table1" id="orderdetailtable">
				<tr>
					<th scope="col" abbr="Starter">Mã dược phẩm</th>
					<th scope="col" abbr="Starter">Tên dược phẩm</th>
					<th scope="col" abbr="Starter">Sô lượng lô</th>
					<th scope="col" abbr="Starter">Thành tiền</th>
					
				</tr>
			    
				 <c:forEach items="${orderDetailModel.orderDetailDTOs}" var="detail"
							varStatus="status">
							<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
				<tr>
					<td>${detail.medicament_ID}</td>
					<td>${detail.medicamentName}</td>
					<td>${detail.totalBatch}</td>
					<td>${detail.orderCost}</td>
					
				</tr>
				</c:forEach>
			</table>
			<br>
			<br>
			<div id="purchasedetailpaging"></div>
			<input id="closeorderdetail" type="button" value="Đóng" />
			<script type="text/javascript">
						var pager = new Pager('orderdetailtable', 10);
						pager.init();
						pager.showPageNav('pager', 'purchasedetailpaging');
						pager.showPage(1);
					</script>
		</div>

</body>
</html>